﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
using WeatherProviders;

namespace AccuWeather3
{
    internal class IntLangZ
    {
        public Int32 ID;
        public String Name;
        public CultureInfo ISO;
        public CultureInfo CI;
        public override string ToString()
        {
            String ret = String.Empty;
            ret += ID > 0 ? "ID=" + ID.ToString() : String.Empty;
            ret += (ret != String.Empty ? "&" : String.Empty) + (!String.IsNullOrEmpty(Name) ? "Name=" + Helper.UrlEncode(Name) : String.Empty);
            ret += (ret != String.Empty ? "&" : String.Empty) + (ISO != null ? "ISO=" + ISO.IetfLanguageTag.ToLower() : String.Empty);
            return ret;
        }
    }
}
